package com.rsxy.service.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("rs_product")
public class RsProduct {
  @TableId(type = IdType.AUTO)
  private Integer id;
  //用户编号
  private String userId;
  //商品编号
  private String productId;
  //商品类型
  private Integer productType;
  //商品标题
  private String productTitle;
  //商品详情
  private String productDetail;
  //商品状态
  private Integer productStatus;
  //商品现价
  private double productPrice;
  //商品原价
  private double productOldPrice;
  //交易类型
  private Integer tradeType;
  @TableField(fill= FieldFill.INSERT)
  //发布时间
  private LocalDateTime gmtCreate;
  @TableField(fill=FieldFill.INSERT_UPDATE)
  //更新时间
  private LocalDateTime gmtModified;;
  @TableField(exist=false)
  private List<RsImage> rsImageList;
  @TableField(exist=false)
  private RsWxInfo wxInfo;
  @TableField(exist=false)
  private List<RsComments> rsComments;
}
